﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace Playlist_file_loader.Parsing
{
    class ParserDelegator
    {
        //-------------------------------------------------------------------//
        //-------------------------member variables--------------------------//
        //-------------------------------------------------------------------//

        private Core.ObjectContainer m_fileList;

        //-------------------------------------------------------------------//
        //-------------------------function definitions----------------------//
        //-------------------------------------------------------------------//

        //-------------------------------------------------------------------//
        // Description: ...
        public ParserDelegator(Stream stream)
        {
            // decide which parser


            m_fileList = new M3uSimpleParser(stream).GetFileList();
        }

        //-------------------------------------------------------------------//
        // Description: ...
        public Core.ObjectContainer GetFileList()
        {
            return m_fileList;
        }
    }
}
